package cn.com.tang.xing.controller;

import cn.com.tang.xing.service.TestService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: tx707@163.com
 * @createTime: 2022年10月16日 11:32:42
 * @Description: tsst
 */
@RestController
@RequestMapping("/test")
public class TrestController {
    Logger logger = LoggerFactory.getLogger(TrestController.class);

    @Autowired
    TestService testService;
    @GetMapping("/hello")
    public String hello(){
        return testService.test();
    }

    @RequestMapping("/1")
    public String getTest(){

        logger.info("fsfsdf-------------------------");
        return "ok";
    }
}
